package br.com.stakeHolder.model;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

@Entity
@Table(name = "stakeholder")
public class StakeHolder implements Serializable {

	private static final long serialVersionUID = 1L;

	@Id
	@Column(name = "idSH")
	@SequenceGenerator(name = "SEQUENCE", sequenceName = "SQ_STAKE_HOLDER")
	@GeneratedValue(strategy = GenerationType.AUTO, generator = "SEQUENCE")
	private Long id;

	@Column(name = "nome")
	private String nome;
	
	@Column(name = "cargo")
	private String cargo;

	public StakeHolder() {

	}

	public StakeHolder(Long id, String nome, String cargo) {
		this.id = id;
		this.nome = nome;
		this.cargo = cargo;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getNome() {
		return nome;
	}

	public void setNome(String nome) {
		this.nome = nome;
	}

	public String getCargo() {
		return cargo;
	}

	public void setCargo(String cargo) {
		this.cargo = cargo;
	}

}
